//
//  shareModel.m
//  PhotoCircle
//
//  Created by wujungao on 12/25/15.
//  Copyright © 2015 wujungao. All rights reserved.
//

#import "shareModel.h"

@implementation shareModel

-(instancetype)initShareModelWithDict:(NSDictionary *)dict{
    
    self=[super init];
    
    if(self){
        
        [self configModelWithDict:dict];
    }
    
    return self;
}

-(void)configModelWithDict:(NSDictionary *)dict{
    
    if (dict[@"title"] != [NSNull null]) {
        self.title=dict[@"title"];
    }
    if (dict[@"summary"] != [NSNull null]) {
        self.summary=dict[@"summary"];
    }
    if (dict[@"image"] != [NSNull null]) {
        self.imageURL=dict[@"image"];
    }
    if (dict[@"url"] != [NSNull null]) {
        self.url=dict[@"url"];
    }
}

@end